/*  SSDiamondOption.h
 *  MESLib
 * 
 * Copyright 2003-2009 Starline Software Ltd
 * 
 * This file is part of MESLib.
 * 
 * MESLib is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * MESLib is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with MESLib. If not, see <http://www.gnu.org/licenses/>.
 */
//  Created by Tobias Haughton on Mon Sep 29 2003.
//

#import <Cocoa/Cocoa.h>
#import "SSDiamondTradeoff.h"

@interface SSDiamondOption : NSObject<NSCoding> {
   NSMutableArray *tradeoffArray;
   NSString *option;
   NSString *udValue1;
   NSString *udValue2;
   NSString *udValue3;
   NSString *udValue4;
   NSString *udValue5;
}

- (id)initWithTradeoffArray:(NSMutableArray *)tradeoffs
                   option:(NSString *)op
                   udValue1:(NSString *)v1
                   udValue2:(NSString *)v2
                   udValue3:(NSString *)v3
                   udValue4:(NSString *)v4
                   udValue5:(NSString *)v5;

- (void)setTradeoffArray:(NSMutableArray *)array;
- (NSMutableArray *)tradeoffArray;

- (void)addTradeoff:(SSDiamondTradeoff *)Tradeoff;
- (void)addNewTradeoff;
- (void)removeTradeoff:(SSDiamondTradeoff *)Tradeoff;

- (void)setOption:(NSString *)string;
- (void)setUdValue1:(NSString *)string;
- (void)setUdValue2:(NSString *)string;
- (void)setUdValue3:(NSString *)string;
- (void)setUdValue4:(NSString *)string;
- (void)setUdValue5:(NSString *)string;

- (NSString *)option;
- (NSString *)udValue1;
- (NSString *)udValue2;
- (NSString *)udValue3;
- (NSString *)udValue4;
- (NSString *)udValue5;

- (NSString *)xmlStringRepresentation;
- (NSString *)tradeoffsXMLString;

@end
